﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SmallERP.FenPian.Forms
{
    public partial class FrmPhotoNum : Form
    {
        public FrmPhotoNum()
        {
            InitializeComponent();
        }

        private void simpleButton_Ok_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
        }
        private void simpleButton_cancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }

        private void spinEditNum_KeyDown(object sender, KeyEventArgs e)
        {
            if(e.KeyValue==(int)Keys.Enter)
            {
                this.DialogResult = System.Windows.Forms.DialogResult.OK;
            }
        }
    }
}
